package com.water.bs.service;

import com.water.bs.mapper.OrgManageMapper;
import com.water.bs.pojo.OrgApply;
import com.water.bs.pojo.Organization;
import com.water.bs.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrgManageService {
    @Autowired
    private OrgManageMapper orgManageMapper;

    public int addOrg(Map<String,Object> map) {
        return orgManageMapper.addOrg(map);
    }

    public List<OrgApply> qryAllOrgApply() {
        return orgManageMapper.qryAllOrgApply();
    }

    public OrgApply getOrgApplyPhoto(String orgid){
        return orgManageMapper.getOrgApplyPhoto(orgid);
    }

    public int agreeOrgApply(Map<String,Object> map){
        return orgManageMapper.agreeOrgApply(map);
    }


    public int rejectOrgApply(Map<String,Object> map){
        return orgManageMapper.rejectOrgApply(map);
    }

    public List<Map<String,Object>> qryOrgList(){return orgManageMapper.qryOrgList();}

    public int delOrg(String orgid){return orgManageMapper.delOrg(orgid);}

    public List<Map<String,Object>> allDonation(){return orgManageMapper.allDonation();}
}
